package com.framework.mybatis.anno;

import com.framework.mybatis.enums.PermissionTypeEnum;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * @author lihanbo
 * @version 1.0
 * @date 2022/3/7 16:58
 */
@Retention(RetentionPolicy.RUNTIME)
public @interface DataPermission {
    /**
     * @return 类型
     */
    PermissionTypeEnum type() default PermissionTypeEnum.user;

    /**
     * @return 字段
     */
    String column();

}
